package file;

import java.io.File;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/6
 **/
public class DeleteFileDemo {
    public static void main(String[] args) {
        File file = new File("./a/demo");
        if (file.exists()){
            file.delete();
            System.out.println("文件已删除");
        }
        System.out.println("文件不存在");

    }
}
